const apiConfig = {
  department: [
    { name: "tree", method: "get", url: "/api/department/tree"},
    { name: "save", method: "post", url: "/api/department/save"},
    { name: "list", method: "post", url: "/api/department/list"},
  ],
  user:[
    { name: "selectUserByDepartmentId", method: "post", url: "/api/user/selectUserByDepartmentId"},
    { name: "selectUser", method: "post", url: "/api/user/selectUser"},
    { name: "save", method: "post", url: "/api/user/save"},
    { name: "delete", method: "get", url: "/api/user/delete"},
    { name: "changeState", method: "get", url: "/api/user/changeState"},
    { name: "login", method: "post", url: "/api/user/login"},
    { name: "out", method: "post", url: "/api/user/out"},
    { name: "selectUserRoles", method: "get", url: "/api/user/selectUserRoles"},
  ],
  permission:[
    { name: "addUserToRole", method: "post", url: "/api/permission/addUserToRole"},
    { name: "deleteUserRole", method: "get", url: "/api/permission/deleteUserRole"},
    { name: "getUserByRole", method: "post", url: "/api/permission/getUserByRole"},
    { name: "menuTreeByRoleId", method: "get", url: "/api/permission/menuTreeByRoleId"},
    { name: "list", method: "post", url: "/api/permission/role/list"},
    { name: "save", method: "post", url: "/api/permission/role/save"},
    { name: "savePermission", method: "post", url: "/api/permission/savePermission"},
  ],
  attConfiguration:[
    { name: "list", method: "post", url: "/api/attConfiguration/list"},
    { name: "save", method: "post", url: "/api/attConfiguration/save"},
    { name: "select", method: "get", url: "/api/attConfiguration/select"},
    { name: "delete", method: "get", url: "/api/attConfiguration/delete"},
  ],
  dictionary:[
    { name: "list", method: "get", url: "/api/dictionary/category/list"},
    { name: "update", method: "post", url: "/api/dictionary/category/update"},
    { name: "getByCategoryCode", method: "get", url: "/api/dictionary/def/getByCategoryCode"},
    { name: "getByCategoryId", method: "get", url: "/api/dictionary/def/getByCategoryId"},
    { name: "defList", method: "get", url: "/api/dictionary/def/list"},
    { name: "defSave", method: "post", url: "/api/dictionary/def/save"},
  ],
  menu:[
    { name: "save", method: "post", url: "/api/menu/save"},
    { name: "tree", method: "get", url: "/api/menu/tree"},
    { name: "userMenu", method: "get", url: "/api/menu/userMenu"},
    { name: "changeStatus", method: "post", url: "/api/menu/changeStatus"},
  ],
  common:[
    { name: "fileDel", method: "delete", url: "/api/common/file/del"},
    { name: "fileDown", method: "get", url: "/api/common/file/down"},
    { name: "fileDown2", method: "get", url: "/api/common/file/down2"},
    { name: "fileUpload", method: "post", url: "/api/common/file/upload"},
  ],

};
export{ apiConfig}
